package com.cn.demo.mapper;

import com.cn.demo.entity.AdminAccounts;
import com.cn.demo.entity.AdminAccountsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface AdminAccountsMapper {
    long countByExample(AdminAccountsExample example);

    int deleteByExample(AdminAccountsExample example);

    int deleteByPrimaryKey(String adminId);

    int insert(AdminAccounts record);

    int insertSelective(AdminAccounts record);

    List<AdminAccounts> selectByExample(AdminAccountsExample example);

    AdminAccounts selectByPrimaryKey(String adminId);

    int updateByExampleSelective(@Param("record") AdminAccounts record, @Param("example") AdminAccountsExample example);

    int updateByExample(@Param("record") AdminAccounts record, @Param("example") AdminAccountsExample example);

    int updateByPrimaryKeySelective(AdminAccounts record);

    int updateByPrimaryKey(AdminAccounts record);

    AdminAccounts login(AdminAccounts adminAccounts);

    int updateToken(String token, String adminId);
}